<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/conn.asp"-->
<!--#include file="lib/saferequest.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<link rel="stylesheet" href="lib/sheet.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="lib/ui/themes/base/ui.all.css" />
<!-- jquery和ui -->
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=zh-CN"></script>
<script type="text/javascript" src="lib/jquery.1.4.2.js"></script>
<script type="text/javascript">
	$(function() {
	//https://www.google.com/latitude/apps/badge/api?user=5661037576488719294&type=json
		var user="5661037576488719294";
		$.getJSON("jsonproxy.asp",{"url":"https://www.google.com/latitude/apps/badge/api?user="+user+"&type=json"},function(data){
			lng=data.features[0].geometry.coordinates[0];
			lat=data.features[0].geometry.coordinates[1];
			id=data.features[0].properties.id;
			timeStamp=data.features[0].properties.timeStamp;
			accuracyInMeters=data.features[0].properties.accuracyInMeters;
			reverseGeocode=data.features[0].properties.reverseGeocode;
			//alert(lat);
			//alert(lng);
			//alert(id);
			//alert(timeStamp);
			//alert(accuracyInMeters);
			//alert(reverseGeocode);
			//var t = new Date(timeStamp);
			//alert(t.toLocaleString());

			$("#res").html(reverseGeocode);
		});
	
	});
</script>

</head>
<body>
<div id="res"></div>
<!-- Google Public Location Badge -->
<iframe src="http://www.google.com/latitude/apps/badge/api?user=5661037576488719294&type=iframe&maptype=roadmap&hl=zh-CN" width="180" height="300" frameborder="0"></iframe>
<!-- To disable location sharing, you *must* visit https://www.google.com/latitude/apps/badge and disable the Google Public Location badge. Removing this code snippet is not enough! -->
<div id="map_canvas"></div>
</body>
</html>
